#ifndef _DEV_CONFIG_H_
#define _DEV_CONFIG_H_

#include <stdint.h>
#include <stdio.h>
#include "my_mcu.h"

/**
 * data
**/
#define UBYTE     uint8_t
#define UWORD     uint16_t
#define UDOUBLE   uint32_t

/**
 * e-Paper GPIO
**/
#define EPD_RST_PIN     GPIOC,    GPIO_Pin_4
#define EPD_DC_PIN      GPIOC,    GPIO_Pin_5
#define EPD_CS_PIN      GPIOA,    GPIO_Pin_4
#define EPD_BUSY_PIN    GPIOB,    GPIO_Pin_0

/**
 * GPIO read and write
**/
#define DEV_Digital_Write(_pin, _value)    GPIO_WriteBit(_pin, _value)
#define DEV_Digital_Read(_pin)             GPIO_ReadInputDataBit(_pin)

/**
 * delay x ms
**/
#define DEV_Delay_ms(__xms)   MyMcu_Delay_ms(__xms)

//----------------------------------Declare------------------------------------
void DEV_SPI_WriteByte(UBYTE value);
int  DEV_Module_Init(void);
void DEV_Module_Exit(void);
//-----------------------------------------------------------------------------
#endif
